def calc(a,b):
    sum = a + b
    print(a,b, sum)
    return sum

print(calc(1,2))

# 可以有多个返回值
def statictis(num):
    s=0
    odd_sum=0
    even_sum=0
    for i in range(1, num+1):
        if i%2 ==0:
            even_sum += i
        else:
            odd_sum += i
        s +=i
    return odd_sum, even_sum, s

result=statictis(10)
print(type(result))
print(result)
a,b,c=statictis(10)
print(a,b,c)
